package com.example.demo.dao;
import com.example.demo.dao.FindIdAndNameAndHeadByIdAndIsDelResult;
import com.example.demo.dao.FindIdAndNameAndHeadByIsDelAndNameAndPasswordResult;
import com.example.demo.dao.FindIdAndNameByNameAndPasswordAndIsDelResult;
import java.util.List;
import com.example.demo.dao.FindIdAndNameAndHeadByNameAndPasswordAndIsDelResult;
import org.apache.ibatis.annotations.Param;

import com.example.demo.domain.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    FindIdAndNameAndHeadByIsDelAndNameAndPasswordResult findIdAndNameAndHeadByIsDelAndNameAndPassword(User user);

    FindIdAndNameByNameAndPasswordAndIsDelResult findIdAndNameByNameAndPasswordAndIsDel(User user);

    FindIdAndNameAndHeadByIdAndIsDelResult findIdAndNameAndHeadByIdAndIsDel(@Param("id")String id,@Param("isDel")Integer isDel);






}
